import { defineStore } from 'pinia'

export const buyInfoStore = defineStore('buyInfo', {
  state: () => ({
    buyTime: [] || null,
    buyAdress: '' || null,
  }),
  actions: {
	setBuyInfo(time,adress){
		this.buyTime = time;
		this.buyAdress = adress;
        localStorage.setItem('buyInfoStore',JSON.stringify({
            buyTime: this.buyTime,
            buyAdress: this.buyAdress,
        }))
	}
  },
})